import Vue from 'vue'
export const user = {
  list: (params) => {
    return Vue.prototype.$post('upms/user/list', params)
  },
  info: (params) => {
    return Vue.prototype.$get(`upms/user/info/${params}`)
  },
  update: (params) => {
    return Vue.prototype.$post('upms/user/update', params)
  },
  add: (params) => {
    return Vue.prototype.$post('upms/user/add', params)
  },
  check: (params) => {
    return Vue.prototype.$post('upms/user/check', params)
  },
  delete: (params) => {
    return Vue.prototype.$get(`upms/user/delete/${params}`)
  },
  userInfo: xh => {
    return Vue.prototype.$get(`/upms/user/info`) // 获取学生信息明细
  },
  sendBindCode: params => { //专业实践申请
    return Vue.prototype.$post(`/bind/sendCode`, params)
  },
  bindConfirm: params => { //专业实践申请
    return Vue.prototype.$post(`/bind/confirm`, params)
  },
  bindQrcode: params => { //专业实践申请
    return Vue.prototype.$get('/bind/wechat',params)
  }
}
